import Mock from 'mockjs'
import routerAPI from './router'
// import loginAPI from './login'
import carDeployAPI from './carDeploy'
import monitorAPI from './monitor'

Mock.setup({
  timeout: '350-600'
})

// 登录相关
// Mock.mock(/\/oauth\/token/, 'post', loginAPI.login)
// Mock.mock(/\/user\/logout/, 'post', loginAPI.logout)
// Mock.mock(/\/lsp\/queryUserInfo\.*/, 'get', loginAPI.queryUserInfo)

// 获取路由
// Mock.mock(/\/permission\/levelOne/, 'get', routerAPI.getTopNavs)
// Mock.mock(/\/permission\/levelTwo/, 'get', routerAPI.getSideNavs)
Mock.mock(/\/user\/firstMenu/, 'get', routerAPI.getTopNavs) //
Mock.mock(/\/user\/subMenu/, 'get', routerAPI.getSideNavs)

// mock -分页
Mock.mock(/\/user\/queryPage/, 'post', carDeployAPI.queryArFundList)
// mock -非分页
// Mock.mock(/\/report\/getTotalFleetMiles/, 'post', monitorAPI.getTotalFleetMiles)
// mock -分页
Mock.mock(/\/vehicles\/getPlateCountList/, 'post', monitorAPI.getPlateCountList)
// mock -非分页
Mock.mock(/\/vehicles\/getPlateDetailList/, 'post', monitorAPI.getPlateDetailList)
export default Mock
